package com.panda.pandawash.util;

/**
 * Created by ubuntu on 17-3-24.
 */

public class RoomlockGattAttributes {
    public static String UUID_SW_VERSION = "00002a28-0000-1000-8000-00805f9b34fb";
    public static String UUID_HW_VERSION = "00002a27-0000-1000-8000-00805f9b34fb";
    public static String UUID_FW_VERSION = "00002a26-0000-1000-8000-00805f9b34fb";
    public static String UUID_SERIAL_NUMBER = "00002a25-0000-1000-8000-00805f9b34fb";
    public static String UUID_TX_CHANNEL = "0000fff1-0000-1000-8000-00805f9b34fb";
    public static String UUID_RX_CHANNEL = "0000fff4-0000-1000-8000-00805f9b34fb";
    public static String UUID_ROOMLOCK_SERVICE = "0000fff0-0000-1000-8000-00805f9b34fb";
    public static String UUID_DEVINFO_SERVICE = "0000180a-0000-1000-8000-00805f9b34fb";

    public RoomlockGattAttributes() {
    }

    public static boolean isUUIDEqualwithSwVersion(String uuid) {
        return UUID_SW_VERSION.equals(uuid);
    }

    public static boolean isUUIDEqualwithHwVersion(String uuid) {
        return UUID_HW_VERSION.equals(uuid);
    }

    public static boolean isUUIDEqualwithFwVersion(String uuid) {
        return UUID_FW_VERSION.equals(uuid);
    }

    public static boolean isUUIDEqualwithSerialNumber(String uuid) {
        return UUID_SERIAL_NUMBER.equals(uuid);
    }

    public static boolean isUUIDEqualwithTxChannel(String uuid) {
        return UUID_TX_CHANNEL.equals(uuid);
    }

    public static boolean isUUIDEqualwithRxChannel(String uuid) {
        return UUID_RX_CHANNEL.equals(uuid);
    }

    public static boolean isUUIDEqualwithInfoService(String uuid) {
        return UUID_DEVINFO_SERVICE.equals(uuid);
    }

    public static boolean isUUIDEqualwithRoomLockService(String uuid) {
        return UUID_ROOMLOCK_SERVICE.equals(uuid);
    }
}
